package cn.com.dhcc.app.pub.core.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * H2初始化监听器
 */
public class H2DbInitListener implements ServletContextListener {

	@Override
	public void contextInitialized(ServletContextEvent sce) {
//		System.out.println(">>>>>>>>>>>>>>>init H2 Database...");
		//H2DbUtil.initH2(sce.getServletContext());
//		System.out.println(">>>>>>>>>>>>>>>H2 is ready...");
	}

	@Override
	public void contextDestroyed(ServletContextEvent sce) {
//		System.out.println("<<<<<<<<<<<<<<<<<shutting down  H2...");
		//H2DbUtil.shutdownH2();
//		System.out.println("<<<<<<<<<<<<<<<<<succesfule shutdown H2");
	}

}
